package com.sunyard.dal.mapper;

import com.sunyard.dal.dto.CarCopyDTO;
import com.sunyard.dal.entity.CarCopy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: ZhangShuai
 * @description: 车辆审核信息表
 * @create: 2022-07-07 14:27
 **/
public interface CarCopyMapper {
    CarCopy selectByPrimaryKey(Integer id);

    void deleteByPrimaryKey(Integer id);

    void insert(CarCopy carCopy);

    void insertQuery(CarCopyDTO carCopy);

    void updateByPrimaryKeySelective(CarCopyDTO carCopy);

    void insertSelective(CarCopy carCopy);

    /*
     * 查询未审核的车辆信息
     * */
    CarCopy queryNotAuditInfo(CarCopyDTO carCopy);

    List<CarCopy> queryCarCopyByPage(CarCopyDTO carCopy);

    List<CarCopy> selectByPrimaryCarId(String carId);

    CarCopy selectNotAuditCarId(String carId);

    List<CarCopy> selectByAuditByCarId(@Param("id") String id, @Param("carId") String carId);

    List<CarCopy> selectListAuditCarId(String carId);


    CarCopyDTO selectByCarId(Integer carId);

    void deleteByCarId(String carId);
}
